﻿package ygg.encoding.swf.abc.structure
{
	import j.sus2maj7.encoding.*;
	
	public class MethodBodyInfo
	{
		//private var _method:MethodInfo;
		
		private var _numLocals:uint;
		private var _maxStack:uint;
		private var _initScopeDepth:uint;
		private var _maxScopeDepth:uint;
		private var _localScopeSize:uint;
		
		//private var _codeLength:uint;
		private var _binary:IBinary;
		
		private var _exceptions:Vector.<ExceptionInfo>;
		
		public var activation:TraitInfo; //not sure about this one
		
		/*public function get method():MethodInfo { return _method; }
		
		public function set method(value:MethodInfo):void
		{
			_method = value;
		}*/
		
		public function get numLocals():uint { return _numLocals; }
		
		public function set numLocals(value:uint):void
		{
			_numLocals = value;
		}
		
		public function get maxStack():uint { return _maxStack; }
		
		public function set maxStack(value:uint):void
		{
			_maxStack = value;
		}
		
		public function get initScopeDepth():uint { return _initScopeDepth; }
		
		public function set initScopeDepth(value:uint):void
		{
			_initScopeDepth = value;
		}
		
		public function get maxScopeDepth():uint { return _maxScopeDepth; }
		
		public function set maxScopeDepth(value:uint):void
		{
			_maxScopeDepth = value;
		}
		
		public function get localScopeSize():uint { return _localScopeSize; }
		
		public function set localScopeSize(value:uint):void
		{
			_localScopeSize = value;
		}
		
		
		public function get binary():IBinary { return _binary; }
		
		public function set binary(value:IBinary):void
		{
			_binary = value;
		}
		
		public function get exceptions():Vector.<ExceptionInfo> { return _exceptions; }
		
		public function set exceptions(value:Vector.<ExceptionInfo>):void
		{
			_exceptions = value;
		}
		
	}
	
}